import { createRouter,createWebHashHistory,createWebHistory } from "vue-router"

const routes =[
    {
        path:'/',  
        redirect:'/authority'
    },
    {
        path:'/index',  
        name:'index',  
        component:()=>import('../views/index.vue')
    }, 
    {
        path: '/authority',
        name: '权限',
        component:()=>import('../views/authority/index.vue')
    },
]

const router = createRouter ({
    history: createWebHashHistory(),
    routes
})
export default router